
function ym_view(ymaps) {
    var map = new ymaps.Map("main_map", {
        center: [37.50318313126409, 55.74148238605168],
        zoom: 16,
        type: "yandex#map"
    });
    map.controls
        .add("zoomControl")
        .add("mapTools")
        .add(new ymaps.control.TypeSelector(["yandex#map", "yandex#satellite", "yandex#hybrid", "yandex#publicMap"]));
    map.geoObjects
        .add(new ymaps.Placemark([37.50198150162541, 55.741530805690125], {
            balloonContent: "Mspares"
        }, {
            preset: "twirl#blueDotIcon"
        }))
        .add(new ymaps.Polyline([
            [37.49794745926696, 55.74378225223502],
            [37.49996448044616, 55.74189395104911],
            [37.50054383759339, 55.74193026539271],
            [37.50256085877262, 55.74098608127891]
        ], {
            balloonContent: ""
        }, {
            strokeColor: "66c7ff",
            strokeWidth: 5,
            strokeOpacity: 0.8
        }));
};